import fetch from '@/utils/fetch'

export function getCourseList(jsonData) {
  const { page, size, data } = jsonData
  return fetch({
    url: `front/course/page?page=${page}&size=${size}`,
    method: 'post',
    data
  })
}

export function findCourseById(id) {
  return fetch({
    url: `front/course/${id}`,
    method: 'get'
  })
}
